﻿<%@ Page Language="C#" MasterPageFile="~/_shared/default01.master" AutoEventWireup="true"
    CodeFile="Alunos.aspx.cs" Inherits="academico_Alunos    " %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phContent" runat="Server">
    <div class="titulo-pags">
        Alunos</div>
    <div class="subtitulo-pags-acao">
        Selecione abaixo um item:</div>
    <br />
    <br />
    <table style="width: 100%; height: 100%">
        <tr>
            <td valign="top">
                <asp:Button ID="btNovo" runat="server" Text="Novo" 
                    onclick="btNovo_Click" />
                <asp:Button ID="btEditar" runat="server" Text="Editar Selecionado" 
                    onclick="btEditar_Click" />
                <asp:Button ID="btExcluir" runat="server" Text="Excluir" />
                
                <asp:DropDownList ID="cmbAcoes" runat="server">
                    <asp:ListItem Text="- mais ações -"></asp:ListItem>
                    <asp:ListItem Text="Matricular"></asp:ListItem>
                    <asp:ListItem Text="Cancelar Matrícula"></asp:ListItem>
                    <asp:ListItem Text="Trocar de Turma"></asp:ListItem>
                    
                </asp:DropDownList>
                
                <span style=" padding:5px 5px 5px 5px;  font: normal 0.7em Arial, Helvetica, sans-serif;"> Filtrar:</span><asp:DropDownList 
                    ID="cmbFiltroSituacao" runat="server" AutoPostBack="true" 
                    onselectedindexchanged="cmbFiltroSituacao_SelectedIndexChanged">
                    
                </asp:DropDownList>

                <br />
                <br />
                <telerik:RadGrid ID="grdItens" runat="server" GridLines="None" 
                    Skin="Default2006" Width="100%" AllowPaging="True" 
                    onitemcommand="grdItens_ItemCommand">
                    <GroupPanel ID="GroupPanel" Style="width: 100%;">
                    </GroupPanel>
                    <ExportSettings>
                        <Pdf PaperSize="Letter" FontType="Subset"></Pdf>
                        <Excel Format="Html"></Excel>
                    </ExportSettings>
                    <ItemStyle Height="10px" />
                    <MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR" Frame="Border"
                        TableLayout="Auto" CommandItemDisplay="None" AutoGenerateColumns="False" 
                        PageSize="25">
                        <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                            Visible="False">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                            Visible="False" Resizable="False">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Id" 
                                Display="False" FilterListOptions="VaryByDataType" ForceExtractValue="None" 
                                ReadOnly="True" UniqueName="Id">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn CurrentFilterFunction="NoFilter" 
                                FilterListOptions="VaryByDataType" ForceExtractValue="None" 
                                UniqueName="TemplateColumn">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkSeleciona" runat="server" />
                                </ItemTemplate>
                                <HeaderStyle Width="10px" />
                                <ItemStyle Width="10px" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Id" 
                                FilterListOptions="VaryByDataType" ForceExtractValue="None" 
                                HeaderText="Matrícula" UniqueName="Id">
                                <ItemStyle Width="150px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Nome" FilterListOptions="VaryByDataType"
                                ForceExtractValue="None" HeaderText="Nome Completo" UniqueName="Nome">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Situacao" 
                                FilterListOptions="VaryByDataType" ForceExtractValue="None" 
                                HeaderText="Situação" UniqueName="Situacao">
                            </telerik:GridBoundColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" />
<Selecting AllowRowSelect="True"></Selecting>
                    </ClientSettings>
                </telerik:RadGrid>
                &nbsp;
            </td>
            
            <!---
            <td style="text-align: left" valign="top">
                <br />
                <br />
                <span class="aviso1">
                    <asp:Literal ID="litAviso" runat="server"></asp:Literal>
                </span>
                <br />
                <br />
                <br />
                <div class="opcoes-cadastro">
                    <asp:ImageButton ID="btCriar" runat="server" ImageUrl="~/_shared/img/bt_criar.jpg"
                        OnClick="btCriar_Click" />
                    <br />
                    <br />
                    Para as opções abaixo, é necessário selecionar um item na lista à esquerda.<br />
                    <br />
                    <asp:ImageButton ID="btAlterar" runat="server" ImageUrl="~/_shared/img/bt_alterar.jpg"
                        OnClick="btAlterar_Click" />
                    <br />
                    <br />
                    
                </div>
                <br />
            </td>
            -->
        </tr>
    </table>
    
</asp:Content>

